<?php

function greengar_remove_favorite($friend_guid, $user_guid, $app) {
    $favorite = get_relationship_favorite($app, TRUE);
    $favoritor = get_relationship_favorite($app, FALSE);
    greengar_remove_entity_relationship($friend_guid, $favoritor, $user_guid);
    greengar_remove_entity_relationship($user_guid, $favorite, $friend_guid);
}

?>